home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-05-04 | 8.9 KB | 388 lines | [TEXT/MPS ] |
- #######################################################################
- # Project : GUSI - Grand Unified Socket Interface
- # File : Makefile - Build everything except examples
- # Author : Matthias Neeracher
- # Language : MPW Shell/Make
- #
- # $Log: Makefile,v $
- # Revision 1.4 1994/05/04 01:46:02 neeri
- # Version 1.4.1
- #
- # Revision 1.3 1994/05/01 23:45:47 neeri
- # Install utime.h.
- #
- # Revision 1.2 1994/02/25 01:14:06 neeri
- # Clean up log.
- #
- # Revision 1.1 1994/02/25 00:46:15 neeri
- # Initial revision
- #
- # Revision 0.29 1994/01/11 00:00:00 neeri
- # Release 1.3.5
- #
- # Revision 0.28 1993/11/17 00:00:00 neeri
- # Release 1.3.4, introducing GUSIRemoteConsole
- #
- # Revision 0.27 1993/07/17 00:00:00 neeri
- # Release 1.3.0
- #
- # Revision 0.26 1993/06/20 00:00:00 neeri
- # Release 1.2.0
- #
- # Revision 0.25 1993/06/01 00:00:00 neeri
- # Introduce more conservative dependences
- #
- # Revision 0.24 1993/04/04 00:00:00 neeri
- # Release 1.1.1
- #
- # Revision 0.23 1993/03/14 00:00:00 neeri
- # Use Stuff to build distribution
- #
- # Revision 0.22 1993/01/09 00:00:00 neeri
- # Make list of targets to be built more flexible
- #
- # Revision 0.21 1992/12/18 00:00:00 neeri
- # Watch out for filenames with spaces
- #
- # Revision 0.20 1992/12/06 00:00:00 neeri
- # Automatic Distribution
- #
- # Revision 0.19 1992/11/14 00:00:00 neeri
- # Subset libraries were not working correctly
- #
- # Revision 0.18 1992/10/27 00:00:00 neeri
- # More robust deletion
- #
- # Revision 0.17 1992/10/18 00:00:00 neeri
- # Separate clean and dirty variants
- #
- # Revision 0.16 1992/09/24 00:00:00 neeri
- # Install
- #
- # Revision 0.15 1992/09/08 00:00:00 neeri
- # GUSISocketTest.c
- #
- # Revision 0.14 1992/09/08 00:00:00 neeri
- # Subset libraries
- #
- # Revision 0.13 1992/09/01 00:00:00 neeri
- # Make GUSI configurable
- #
- # Revision 0.12 1992/08/16 00:00:00 neeri
- # TCP/IP files: GUSIINET.cp, GUSITCP.cp, GUSIUDP.cp
- #
- # Revision 0.11 1992/08/03 00:00:00 neeri
- # GUSIBuffer.cp
- #
- # Revision 0.10 1992/08/02 00:00:00 neeri
- # GUSIPPCTest
- #
- # Revision 0.9 1992/07/26 00:00:00 neeri
- # Rewrote GUSIAtlkTest
- #
- # Revision 0.8 1992/07/25 00:00:00 neeri
- # GUSITest
- #
- # Revision 0.7 1992/06/15 00:00:00 neeri
- # GUSIFSp
- #
- # Revision 0.6 1992/06/06 00:00:00 neeri
- # PPC Toolbox domain
- #
- # Revision 0.5 1992/05/12 00:00:00 neeri
- # GUSIAtlkTest
- #
- # Revision 0.4 1992/04/19 00:00:00 neeri
- # Rewrite in C++
- #
- # Revision 0.3 1992/04/17 00:00:00 neeri
- # Reorganize Libraries
- #
- # Revision 0.2 1992/04/12 00:00:00 neeri
- # GUSIUnixTest
- #
- # Revision 0.1 1992/03/24 00:00:00 neeri
- # GUSIDispatch
- #
- #######################################################################
-
- #######################################################################
- # Paths where GUSI components will go
- #
-
- GUSICIncludes = {CIncludes}
- GUSICLibraries = {CLibraries}
- GUSIRIncludes = {RIncludes}
-
- #######################################################################
- # Comment out GUSI.ps if you don't have SpiderWEB and TeXShop
- #
-
- GUSI_PS = GUSI.ps
-
- #######################################################################
- # You might not need to change anything below this line
- #
-
- GUSI_SOURCES = ∂
- GUSIFSp.cp ∂
- GUSIDispatch.cp ∂
- GUSISocket.cp ∂
- GUSIFile.cp ∂
- GUSISIOW.cp ∂
- GUSIBuffer.cp ∂
- GUSIUnix.cp ∂
- GUSIAppleTalk.cp ∂
- GUSIPPC.cp ∂
- GUSIINET.cp ∂
- GUSITCP.cp ∂
- GUSIUDP.cp ∂
- GUSINetDB.cp ∂
- GUSIPAP.cp ∂
- GUSICfg.c ∂
- GUSIRemoteConsole.cp
-
- GUSI_HEADERS = ∂
- GUSI.h ∂
- GUSI_P.h ∂
- TFileSpec.h ∂
- compat.h ∂
- dirent.h ∂
- 'machine/ansi.h' ∂
- 'machine/endian.h' ∂
- 'machine/types.h' ∂
- netdb.h ∂
- 'netinet/in.h' ∂
- 'netinet/tcp.h' ∂
- 'sys/cdefs.h' ∂
- 'sys/errno.h' ∂
- 'sys/fcntl.h' ∂
- 'sys/ioctl.h' ∂
- 'sys/socket.h' ∂
- 'sys/stat.h' ∂
- 'sys/time.h' ∂
- 'sys/types.h' ∂
- 'sys/uio.h' ∂
- 'sys/un.h' ∂
- 'sys/unistd.h' ∂
- unistd.h ∂
- utime.h
-
- OBSOLETE_HEADERS = ∂
- "{GUSICIncludes}"'machine/machtypes.h' ∂
- "{GUSICIncludes}"'sys/ioctl_compat.h' ∂
- "{GUSICIncludes}"'sys/ttychars.h' ∂
- "{GUSICIncludes}"'sys/ttydev.h'
-
- GUSI_OBJECTS = ∂
- :Obj:GUSIFSp.cp.o ∂
- :Obj:GUSIDispatch.cp.o ∂
- :Obj:GUSISocket.cp.o ∂
- :Obj:GUSIFile.cp.o ∂
- :Obj:GUSISIOW.cp.o ∂
- :Obj:GUSIBuffer.cp.o ∂
- :Obj:GUSIUnix.cp.o ∂
- :Obj:GUSIAppleTalk.cp.o ∂
- :Obj:GUSIPPC.cp.o ∂
- :Obj:GUSIINET.cp.o ∂
- :Obj:GUSITCP.cp.o ∂
- :Obj:GUSIUDP.cp.o ∂
- :Obj:GUSINetDB.cp.o ∂
- :Obj:GUSIPAP.cp.o
-
- GUSI_DOC = ∂
- GUSI.web ∂
- GUSI.tex ∂
- GUSI.ps ∂
- README
-
- GUSI_TARGETS = ∂
- GUSI.o ∂
- GUSI_Everything.cfg ∂
- GUSI_Appletalk.cfg ∂
- GUSI_Internet.cfg ∂
- GUSI_Unix.cfg ∂
- GUSI_PPC.cfg ∂
- GUSI_PAP.cfg ∂
- GUSIRemoteConsole.o
-
- GUSI_LIB = ∂
- {GUSI_TARGETS} ∂
- GUSI.r ∂
- GUSI.rsrc
-
- GUSI_TEST = ∂
- :Examples:GUSITest.c ∂
- :Examples:GUSITest.h ∂
- :Examples:GUSITest.r ∂
- :Examples:GUSITest.rsrc ∂
- :Examples:GUSITest_P.h ∂
- :Examples:GUSISocketTest.c ∂
- :Examples:GUSIAtlkTest.c ∂
- :Examples:GUSIFileTest.c ∂
- :Examples:GUSIINETTest.c ∂
- :Examples:GUSIPPCTest.c ∂
- :Examples:GUSIUnixTest.c ∂
- :Examples:GUSIUnixTest.r ∂
- :Examples:GUSIFinger.c ∂
- :Examples:GUSIFinger.r ∂
- :Examples:GUSIPAPTest.c
-
- GUSI_MISC = ∂
- MakeAliases ∂
- Internalize ∂
- Distribution ∂
- SafeDel ∂
- Aliases ∂
- GUSI.dn ∂
- GUSI.ext ∂
- GUSI_C.dn ∂
- GUSIINET_P.h ∂
- GUSIPPC_P.h ∂
- GUSIRsrc_P.h ∂
- Makefile ∂
- '/etc/services'
-
- GUSI_DISTR = ∂
- {GUSI_SOURCES} ∂
- {GUSI_HEADERS} ∂
- {GUSI_DOC} ∂
- {GUSI_LIB} ∂
- {GUSI_TEST} ∂
- {GUSI_MISC}
-
- Debug =
-
- COptions = -r -mbg on -sym on -i : -i :include
- CPlusOptions = -mf -mbg on -sym on -i : -i :include {Debug}
- LOptions = -sym on -mf -w
- ROptions = -i :
-
- :Obj: ƒ :
-
- Help ƒ
- Echo "Top level targets are:"
- Echo "∂tInstall - Install GUSI"
- Echo "∂tUninstall - Try to remove GUSI"
- Echo "∂tGUSI - Rebuild GUSI (use with care)"
- Echo "∂tGUSITest - Build GUSI Examples"
-
- Alias.dump ƒ "{Libraries}Runtime.o" "{CLibraries}StdCLib.o" "{CLibraries}CPlusLib.o"
- DumpObj -mods "{Libraries}Runtime.o" > Alias.dump
- DumpObj -mods "{CLibraries}StdCLib.o" >> Alias.dump
- DumpObj -mods "{CLibraries}CPlusLib.o" >> Alias.dump
-
- Alias.rn ƒ Aliases Alias.dump
- MakeAliases Alias.dump
-
- GUSI.dn ƒ preGUSI.o GUSI.ext
- DumpObj -mods preGUSI.o | Internalize
-
- StdLib.o ƒ Alias.rn
- Lib -w -o StdLib.o ∂
- -sg GUSILib=Main ∂
- `Catenate Alias.rn` ∂
- "{Libraries}Runtime.o" ∂
- "{CLibraries}StdCLib.o" ∂
- "{CLibraries}CPlusLib.o"∂
- "{Libraries}dnr.o" ∂
- -df Alias1.df
-
- #######################################################################
- # The full library
- #
-
- preGUSI.o ƒ {GUSI_OBJECTS} Alias.rn StdLib.o
- Lib -w -o preGUSI.o ∂
- {GUSI_OBJECTS} ∂
- StdLib.o ∂
- -sg Main=GUSIResident ∂
- -df Alias.df
-
- GUSI.o ƒ preGUSI.o GUSI.dn
- Set Echo 0
- Echo "∂t∂tLib" -w -o GUSI.o ...
- Lib -w -o GUSI.o preGUSI.o `Catenate GUSI.dn`
- Set Echo 1
-
- GUSI_Everything.cfg ƒ GUSICfg.c
- C -d GUSI_Everything -o GUSI_Everything.cfg GUSICfg.c
-
- GUSI_Appletalk.cfg ƒ GUSICfg.c
- C -d GUSI_Appletalk -o GUSI_Appletalk.cfg GUSICfg.c
-
- GUSI_Internet.cfg ƒ GUSICfg.c
- C -d GUSI_Internet -o GUSI_Internet.cfg GUSICfg.c
-
- GUSI_Unix.cfg ƒ GUSICfg.c
- C -d GUSI_Unix -o GUSI_Unix.cfg GUSICfg.c
-
- GUSI_PPC.cfg ƒ GUSICfg.c
- C -d GUSI_PPC -o GUSI_PPC.cfg GUSICfg.c
-
- GUSI_PAP.cfg ƒ GUSICfg.c
- C -d GUSI_PAP -o GUSI_PAP.cfg GUSICfg.c
-
- GUSIRemoteConsole.o ƒ GUSIRemoteConsole.cp
- {CPlus} {CPlusOptions} GUSIRemoteConsole.cp -o GUSIRemoteConsole.o
-
- #######################################################################
- # Clean namespace
- #
-
- GUSI_C.o ƒ GUSI.o GUSI.dn
- Lib -o GUSI_C.o ∂
- GUSI.o ∂
- `Catenate GUSI_C.dn`
-
- GUSI.tex ƒ GUSI.web
- cweave GUSI
-
- GUSI.dvi ƒ GUSI.tex
- tex GUSI
-
- GUSI.ps ƒ GUSI.dvi
- dvips -a -Z GUSI.dvi -o GUSI.ps
-
- GUSI ƒ {GUSI_TARGETS} {GUSI_DOC}
-
- Install ƒ
- :SafeInstall -to "{GUSICLibraries}" {GUSI_TARGETS}
- :SafeInstall -to "{GUSICIncludes}" -from include {GUSI_HEADERS} GUSIRsrc_P.h
- :SafeInstall -to "{GUSIRIncludes}" GUSI.r GUSI.rsrc :include:GUSIRsrc_P.h
- :SafeDel {OBSOLETE_HEADERS}
- :SafeInstall -y -to "{PrefsFolder}:" '/etc/services'
-
- Uninstall ƒ
- :SafeDel "{CLibraries}GUSI.o" "{CLibraries}GUSI_F.o"
- For i in {GUSI_HEADERS}
- :SafeDel "{GUSICIncludes}{i}"
- End
- :SafeDel "{RIncludes}GUSI.r" "{RIncludes}GUSI.rsrc" "{RIncludes}GUSIRsrc_P.h"
-
- GUSITest GUSIFileTest ∂
- GUSIFinger GUSIPAPTest ∂
- GUSIUnixTest GUSIUnixTest2 ∂
- GUSIAtlkTest GUSIAtlkTest2 ∂
- GUSIPPCTest GUSIPPCTest2 ∂
- GUSIINETTest GUSIINETTest2 ƒ $OutOfDate
- Directory Examples
- Set OldEcho {Echo}
- Set Echo 0
- BuildProgram {Targ}
- Set Echo {OldEcho}
- Directory ::
-
- GUSICleanDep ƒ
- :SafeDel '≈.dn' '≈.rn' '≈.df'
-
- Clean ƒ
- :SafeDel '≈.dn' '≈.rn' '≈.df' '≈.o' '≈.toc' '≈.tex' '≈.log' '≈.dump' '≈.sym'
-
- RealClean ƒ Clean
- :SafeDel '≈.dvi' '≈.ps' '-t APPL'
-
- Distribution ƒ GUSI
- :Distribute GUSI.distr GUSI_141.sit
-
- Distr ƒ Distribution